package com.wframe.project.jnd.entity;

import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/5/24.
 */
public class UiFloor implements Serializable {

    public enum Platform {
        PC("PC端"),
        WE("微商城");

        Platform(String display) {
            this.display = display;
        }

        private String display;

        public String getDisplay() {
            return display;
        }

        public void setDisplay(String display) {
            this.display = display;
        }
    }

    public enum State {
        AVAILABLE,
        UNAVAILABLE,
        REMOVED;
    }

    private Long id;
    private Date create_time;
    private String title;
    private String color;
    private Platform platform;
    private Integer sort_value;
    private State state;
    private String remark;

    private List<UiFloorPanel> panels;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Platform getPlatform() {
        return platform;
    }

    public void setPlatform(Platform platform) {
        this.platform = platform;
    }

    public Integer getSort_value() {
        return sort_value;
    }

    public void setSort_value(Integer sort_value) {
        this.sort_value = sort_value;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<UiFloorPanel> getPanels() {
        return panels;
    }

    public void setPanels(List<UiFloorPanel> panels) {
        this.panels = panels;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null || (!(obj instanceof UiFloor))) {
            return false;
        }
        UiFloor uiFloor = (UiFloor) obj;
        if (this.getId() != null && uiFloor.getId() != null) {
            return this.getId().longValue() == uiFloor.getId().longValue();
        }
        return super.equals(obj);
    }

}
